// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import java.math.BigDecimal;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * WeeeTax generated by hbm2java
 */
@Entity
@Table(name = "weee_tax", catalog = "magento")
public class WeeeTax implements java.io.Serializable {
	private static final long serialVersionUID = 121323L;

	private Integer valueId;
	private CoreWebsite coreWebsite;
	private CatalogProductEntity catalogProductEntity;
	private DirectoryCountry directoryCountry;
	private EavAttribute eavAttribute;
	private BigDecimal value;
	private String state;
	private short entityTypeId;

	public WeeeTax() {
	}

	public WeeeTax(CoreWebsite coreWebsite,
			CatalogProductEntity catalogProductEntity,
			EavAttribute eavAttribute, BigDecimal value, String state,
			short entityTypeId) {
		this.coreWebsite = coreWebsite;
		this.catalogProductEntity = catalogProductEntity;
		this.eavAttribute = eavAttribute;
		this.value = value;
		this.state = state;
		this.entityTypeId = entityTypeId;
	}

	public WeeeTax(CoreWebsite coreWebsite,
			CatalogProductEntity catalogProductEntity,
			DirectoryCountry directoryCountry, EavAttribute eavAttribute,
			BigDecimal value, String state, short entityTypeId) {
		this.coreWebsite = coreWebsite;
		this.catalogProductEntity = catalogProductEntity;
		this.directoryCountry = directoryCountry;
		this.eavAttribute = eavAttribute;
		this.value = value;
		this.state = state;
		this.entityTypeId = entityTypeId;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "value_id", unique = true, nullable = false)
	public Integer getValueId() {
		return this.valueId;
	}

	public void setValueId(Integer valueId) {
		this.valueId = valueId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "website_id", nullable = false)
	public CoreWebsite getCoreWebsite() {
		return this.coreWebsite;
	}

	public void setCoreWebsite(CoreWebsite coreWebsite) {
		this.coreWebsite = coreWebsite;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "entity_id", nullable = false)
	public CatalogProductEntity getCatalogProductEntity() {
		return this.catalogProductEntity;
	}

	public void setCatalogProductEntity(
			CatalogProductEntity catalogProductEntity) {
		this.catalogProductEntity = catalogProductEntity;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "country")
	public DirectoryCountry getDirectoryCountry() {
		return this.directoryCountry;
	}

	public void setDirectoryCountry(DirectoryCountry directoryCountry) {
		this.directoryCountry = directoryCountry;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "attribute_id", nullable = false)
	public EavAttribute getEavAttribute() {
		return this.eavAttribute;
	}

	public void setEavAttribute(EavAttribute eavAttribute) {
		this.eavAttribute = eavAttribute;
	}

	@Column(name = "value", nullable = false, precision = 12, scale = 4)
	public BigDecimal getValue() {
		return this.value;
	}

	public void setValue(BigDecimal value) {
		this.value = value;
	}

	@Column(name = "state", nullable = false)
	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}

	@Column(name = "entity_type_id", nullable = false)
	public short getEntityTypeId() {
		return this.entityTypeId;
	}

	public void setEntityTypeId(short entityTypeId) {
		this.entityTypeId = entityTypeId;
	}

}
